#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

class Solution {
public:

    bool IsContinuous(vector<int>& numbers) {

        sort(numbers.begin(), numbers.end());

        int n = 0;
        int cur = 0;
        while (numbers[cur] == 0)
        {
            n++;
            cur++;
        }
        if (numbers[numbers.size() - 1] - numbers[cur] > 5)
        {
            return false;
        }
        while (cur < numbers.size() - 1)
        {
            if (numbers[cur] == numbers[cur + 1])
            {
                return false;
            }
            else if (numbers[cur] + 1 != numbers[cur + 1])
            {
                n--;
                if (n < 0)
                {
                    return false;
                }
            }
            cur++;
        }

        return true;
    }
};

int main()
{
    return 0;
}